import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/list_advance_pre_pay_order_entity.g.dart';
import 'dart:convert';
export 'package:flutter_deer/generated/json/list_advance_pre_pay_order_entity.g.dart';

@JsonSerializable()
class ListAdvancePrePayOrderEntity {
	ListAdvancePrePayOrderEx? ex;
	List<ListAdvancePrePayOrderList>? list = [];
	int? total = 0;

	ListAdvancePrePayOrderEntity();

	factory ListAdvancePrePayOrderEntity.fromJson(Map<String, dynamic> json) => $ListAdvancePrePayOrderEntityFromJson(json);

	Map<String, dynamic> toJson() => $ListAdvancePrePayOrderEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ListAdvancePrePayOrderEx {
	int? orderAmount = 0;
	int? orderCount = 0;

	ListAdvancePrePayOrderEx();

	factory ListAdvancePrePayOrderEx.fromJson(Map<String, dynamic> json) => $ListAdvancePrePayOrderExFromJson(json);

	Map<String, dynamic> toJson() => $ListAdvancePrePayOrderExToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ListAdvancePrePayOrderList {
	List<dynamic>? goodsNameList = [];
	// String? mchCode = '';
	// int? mchMemberId = 0;
	// String? mchName = '';
	String? orderAmount = '';
	String? orderId = '';
	// int? orderStatus = 0;
	// String? orderTime = '';
	// int? orderTimeSec = 0;
	String? payTime = '';
	String? payTypeNames = '';
	String? phone = '';
	// List<dynamic>? shelfIdList = [];
	List<dynamic>? shelfNoList = [];
	// String? shiftNo = '';
	// int? userId = 0;


	// ----- 兼容油单数据 ------
	String? energyOrderId = '';
	String? shelfNo = '';
	String? goodsQuantity = '';
	String? goodsTotalPrice = '';
	String? goodsUnit = '';
	String? mchGoodsName = '';
	String? createTime = '';

	ListAdvancePrePayOrderList();

	factory ListAdvancePrePayOrderList.fromJson(Map<String, dynamic> json) => $ListAdvancePrePayOrderListFromJson(json);

	Map<String, dynamic> toJson() => $ListAdvancePrePayOrderListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
